<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="../css/mui.min.css">
	<link rel="stylesheet" type="text/css" href="../css/mgPublic.css"/>
	<link rel="stylesheet" type="text/css" href="../css/mggj.css"/>
    <title>发现活动</title>
   <style>
		html,
		body {
			background-color: #efeff4;
		}
		.mui-bar~.mui-content .mui-fullscreen {
			top: 44px;
			height: auto;
		}	
		.mui-pull-top-tips {
			position: absolute;
			top: -20px;
			left: 50%;
			margin-left: -25px;
			width: 40px;
			height: 40px;
			border-radius: 100%;
			z-index: 1;
		}
		.mui-bar~.mui-pull-top-tips {
			top: 86px;
		}
		.mui-pull-top-wrapper {
			width: 42px;
			height: 42px;
			display: block;
			text-align: center;
			background-color: #efeff4;
			border: 1px solid #ddd;
			border-radius: 25px;
			background-clip: padding-box;
			box-shadow: 0 4px 10px #bbb;
			overflow: hidden;
		}
		.mui-pull-top-tips.mui-transitioning {
			-webkit-transition-duration: 200ms;
			transition-duration: 200ms;
		}
		.mui-pull-top-tips .mui-pull-loading {
			/*-webkit-backface-visibility: hidden;
			-webkit-transition-duration: 400ms;
			transition-duration: 400ms;*/
			
			margin: 0;
		}
		.mui-pull-top-wrapper .mui-icon,
		.mui-pull-top-wrapper .mui-spinner {
			margin-top: 7px;
		}
		.mui-pull-bottom-tips {
			text-align: center;
			background-color: #efeff4;
			font-size: 15px;
			line-height: 40px;
			color: #777;
		}
		.mui-pull-top-canvas {
			overflow: hidden;
			background-color: #fafafa;
			border-radius: 40px;
			box-shadow: 0 4px 10px #bbb;
			width: 40px;
			height: 40px;
			margin: 0 auto;
		}
		.mui-pull-top-canvas canvas {
			width: 40px;
		}
		.mui-slider-indicator.mui-segmented-control {
			background-color: #fff;
		}
		.mui-segmented-control.mui-scroll-wrapper .mui-control-item{font-size: 14px;}
		.event_gift li{margin-bottom: 0;}
		
		#topPopover {
			position: fixed;
			top: 16px;
			right: 6px;
		}
		#topPopover .mui-popover-arrow {
			left: auto;
			right: 6px;
		}
		.mui-popover {
			height:130px;
		}
		
	</style>	
</head>
<body>
	<header class="mui-bar mui-bar-nav top_nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left detail_left"></a>
		<h1 id="title" class="mui-title">发现活动</h1>
		<a class="mui-icon mui-icon-more mui-pull-right" href="#topPopover"></a>
	</header>
	<div class="mui-content">
			<div id="slider" class="mui-slider mui-fullscreen envir_contents">
				<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted envi_ocnsult_nav">
					<div class="mui-scroll">
						<a class="mui-control-item mui-active" href="#item1mobile">
							全部活动
						</a>
						<a class="mui-control-item" href="#item2mobile">
							附近活动
						</a>
						<a class="mui-control-item" href="#item3mobile">
							发布的活动
						</a>
						<a class="mui-control-item" href="#item4mobile">
							参加的活动
						</a>
					</div>
				</div>
				<div class="mui-slider-group event_gift conllect_list_one">
					<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
						<div id="scroll1" class="mui-scroll-wrapper">
							<div class="mui-scroll env_info_list">
								<ul class="mui-table-view mui-table-view-chevron">
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							    </ul>
							</div>
						</div>
					</div>
					<div id="item2mobile" class="mui-slider-item mui-control-content">
						<div class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<ul class="mui-table-view mui-table-view-chevron">
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							    </ul>
							</div>
						</div>
					</div>
					<div id="item3mobile" class="mui-slider-item mui-control-content">
						<div class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<ul class="mui-table-view mui-table-view-chevron">
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="activity_detail.html" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							    </ul>
							</div>
						</div>
					</div>
					<div id="item4mobile" class="mui-slider-item mui-control-content">
						<div class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<ul class="mui-table-view mui-table-view-chevron">
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							      <li class="mui-table-view-cell">
							      	<a href="javascript:;" class="">
							      		<img class="mui-media-object mui-pull-left" src="../images/find/speeker_1.png">
							      		<div class="mui-media-body">
							      			<h3 class="mui-ellipsis item_list_head">11.11面具舞会派对</h3>
							      			<div class="party_time">
							      				<span>时间：</span>
							      				<p>11月<br />周三晚上9:30-12:00</p>
							      			</div>
							      			<div class="party_position">
							      				<span>地点：</span>
							      				<p>广州市海珠区琶醒B区琶醒B区仓1-3层</p>
							      			</div>
							      			<div class="people_num"><span>232人去</span></div>
							      		</div>
							      	</a>
							      </li>
							    </ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--右上角弹出菜单-->
		<div id="topPopover" class="mui-popover top_popover">
			<div class="mui-popover-arrow"></div>
			<div class="mui-scroll-wrapper">
				<div class="mui-scroll">
					<ul class="mui-table-view">
						<li class="mui-table-view-cell">
							<a href="launch_activities.html">发起活动</a>
						</li>
						<li class="mui-table-view-cell">
							<a href="the_activities.html">活动报导</a>
						</li>
						<li class="mui-table-view-cell">
							<a href="event_gift.html">活动礼品</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<script src="../js/mui.min.js"></script>
		<script src="../js/mui.pullToRefresh.js"></script>
		<script src="../js/mui.pullToRefresh.material.js"></script>
		<script>
		mui.init();
			mui.preload({
				url:'ctivity_detail.html',
				id:'ctivity_detail.html',
				styles:{},//窗口参数
				extras:{}//自定义扩展参数
			});
			(function($) {
				//阻尼系数
				var deceleration = mui.os.ios?0.003:0.0009;
				$('.mui-scroll-wrapper').scroll({
					bounce: false,
					indicators: true, //是否显示滚动条
					deceleration:deceleration
				});
				$.ready(function() {
					//循环初始化所有下拉刷新，上拉加载。var downCount=0,upCount=0;					
					$.each(document.querySelectorAll('.mui-slider-group .mui-scroll'), function(index, pullRefreshEl) {
						$(pullRefreshEl).pullToRefresh({
							down: {
								callback: function() {
									var self = this;
									setTimeout(function() {
										var ul = self.element.querySelector('.mui-table-view');
										ul.insertBefore(createFragment(ul, index, 2, true), ul.firstChild);
										self.endPullDownToRefresh();
									}, 1000);
								}
							},
							up: {
								callback: function() {
									var self = this;
									setTimeout(function() {
										var ul = self.element.querySelector('.mui-table-view');
										ul.appendChild(createFragment(ul, index,3));
										self.endPullUpToRefresh();
									}, 1000);
								}
							}
						});
					});
					var createFragment = function(ul, index, count, reverse) {
						var length = ul.querySelectorAll('li').length;
						var fragment = document.createDocumentFragment();
						var liHTML;
						for (var i = 0; i < count; i++) {
							li = document.createElement('li');
							li.className = 'mui-table-view-cell';
							liHTML = '<a href="javascript:;" class="">';
							liHTML += '<img class="mui-media-object mui-pull-left" src="../images/find/tp2.png">';
							liHTML += '<div class="mui-media-body">';
							liHTML += '<h3 class="mui-ellipsis item_list_head">'+(i+1)+'Mary</h3>';
							liHTML += '<div class="party_time"><span>时间：</span><p>11月<br />周三晚上9:30-12:00</p></div><div class="party_position"><span>地点：</span><p>广州市海珠区琶醒B区琶醒B区仓1-3层</p></div><div class="people_num"><span>232人去</span></div>';
							liHTML += '</div></a>';
							li.innerHTML =liHTML;
							fragment.appendChild(li);
						}
						return fragment;
					};
				});
			})(mui);
			
		</script>
	</body>

</html>